const { findvisitorInfoDao } = require("../dao/visitorInfoDao");
const { formatResponse,handleDataPattern } = require("../utils/tool");

// 查询全局设置
module.exports.findvisitorInfoService = async function (pageInfo) {
  const data = await findvisitorInfoDao(pageInfo);
  const rows = handleDataPattern(data.rows)
  return formatResponse(0, "分页获取成功", {
    total: data.total,
    rows: rows,
  });
};
